package com.example.androidlearning2400.ui.theme

fun main(){
    val totalMB = 20* 1024
    val usedMB = 10 * 1024 + 480
    val leftMB = computeLeft(totalMB,usedMB)
    if(leftMB < 1024) {
        println("Alert:left less than 1GB")
    }else{
        val leftGB = leftMB / 1024
        println("left $leftGB GB")
    }
}
fun computeLeft(totalMB: Int,usedMB: Int): Int = totalMB - usedMB